package com.gwt.client.util.geo;

import com.google.gwt.core.client.JavaScriptObject;

public class Coordinates extends JavaScriptObject{

	protected Coordinates(){}

	public final native double getLatitude() /*-{
	    return this.latitude;
	  }-*/;

	public final native double getLongitude() /*-{
	    return this.longitude;
	  }-*/;

	public final native boolean hasAltitude() /*-{
	    return this.altitude != null;
	  }-*/;

	public final native double getAltitude() /*-{
		if(this.altitude){
			return this.altitude;
		} else {
	    return 0.0;
		}
	  }-*/;

	public final native double getAccuracy() /*-{
	    return this.accuracy;
	  }-*/;
}
